home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
assemblr
/
library
/
asm_kit
/
fread.asm
< prev
next >
Wrap
Assembly Source File
|
1985-06-21
|
384b
|
16 lines
;ROUTINE TO READ A BYTE FROM A FILE
;
readfile proc far
;
mov ah,3Fh ;read from a file
int 21h ;DOS call
cmp ax,cx ;everything back?
je readfile1 ;skip if OK
mov ax,21 ;not all read
stc ;set carry if error
;
readfile1:
ret
;
readfile endp